class AddressModel {
  var addressId;
  var area;
  var building;
  var city;
  var createTime;
  var detail;
  var province;
  var type;
  var updateTime;
  var userId;
  var userName;

  AddressModel(
      {this.addressId,
        this.area,
        this.building,
        this.city,
        this.createTime,
        this.detail,
        this.province,
        this.type,
        this.updateTime,
        this.userId,
        this.userName});

  AddressModel.fromJson(Map<String, dynamic> json) {
    addressId = json['addressId'];
    area = json['area'];
    building = json['building'];
    city = json['city'];
    createTime = json['createTime'];
    detail = json['detail'];
    province = json['province'];
    type = json['type'];
    updateTime = json['updateTime'];
    userId = json['userId'];
    userName = json['userName'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['addressId'] = this.addressId;
    data['area'] = this.area;
    data['building'] = this.building;
    data['city'] = this.city;
    data['createTime'] = this.createTime;
    data['detail'] = this.detail;
    data['province'] = this.province;
    data['type'] = this.type;
    data['updateTime'] = this.updateTime;
    data['userId'] = this.userId;
    data['userName'] = this.userName;
    return data;
  }
}